# -*- coding: utf-8 -*-
"""
Created on Tue Apr  6 17:04:49 2021

@author: 86159
"""
#导入依赖包
import asr_raw as ar#百度语音识别包
from RecordPlay import recorder#录音包
#录音5s,保存音频到test.wav文件
r = recorder()
r.recorder("test.wav")
#识别录音结果
result_str = ar.Voice2Text("test.wav")#识别语音
#打印录音结果
print("语音识别结果 = " + result_str)#打印识别结果



        
    



